package dwz.business.lotto.impl;

import java.util.List;

import dwz.business.lotto.QiHaoInterface;
import dwz.common.util.web.PageInfo;
import dwz.persistence.beans.QiHao;
import dwz.persistence.beans.QiHaoExample;
import dwz.persistence.mapper.QiHaoMapper;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
@Transactional(rollbackFor = Exception.class)
@Service
public class QiHaoInterfaceImpl implements QiHaoInterface{

	@Autowired
	QiHaoMapper qiHaoMapper;
	@Override
	public int countByExample(QiHaoExample example) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int deleteByExample(QiHaoExample example) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int deleteByPrimaryKey(Integer id) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int insertSelective(QiHao record) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public List<QiHao> selectByExample(QiHaoExample example) {
		
		return qiHaoMapper.selectByExample(example);
	}

	@Override
	public List<QiHao> selectByExampleWithPage(QiHaoExample example,
			PageInfo pageInfo) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public QiHao selectByPrimaryKey(Integer id) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public int updateByPrimaryKeySelective(QiHao entity) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public List<QiHao> selectAllWithPage(QiHao entity, PageInfo pageInfo) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public QiHao selectEntityByExample(QiHaoExample example) {
		
		return qiHaoMapper.selectEntityByExample(example);
	}

	public QiHao selectMaxQiHao(){
		return qiHaoMapper.selectMaxQiHao();
	}

	@Override
	public QiHao findQiHaoByQh(Integer qh) {
		return qiHaoMapper.findQiHaoByQh(qh);
	}
}
